@layout("/backend/common/_container.html"){
<link rel="stylesheet" type="text/css" href="${ctxPath}/static/backend/sds/sdsqcformitem/style.css">
<!--<style>

    .table th, .table td {

        text-align: center;

        vertical-align: middle !important;
    }

    .dhcc-form .form-control:focus {
        box-shadow: none;
    }
</style>-->
<#Hidden id="qcEntityMap" value="${qcEntityMap!}"/>
<#Hidden id="recommendType" value="${recommendType!}"/>
<#Hidden id="dataSourceMap" value="${dataSourceMap!}"/>
<#Hidden id="qcMap" value="${qcMap!}"/>
<div id="treatPlanTabs" class="hisui-tabs tabs-gray" data-options="fit:true,onSelect:SdcTreatPlanInfoDlg.changeTabs">
    <div title="基本信息" style="padding:10px;border:0px;">

        <!--<form method='post' id="sdcTreatPlanInfoForm" name="sdcTreatPlanInfoForm" enctype="multipart/form-data">

            <input type="hidden" id="id" name="id" value="${sdcTreatPlanId!}">
            <div class="form-group has-feedback">
                <label class="lab">方案名称</label>
                <div class="ele">
                    <input class="textbox" id="itemName" name="itemName">
                </div>
            </div>
            <div class="form-group has-feedback">
                <label class="lab">方案备注</label>
                <div class="ele">
                    &lt;!&ndash;<input class="textbox" id="itemDesc" name="itemDesc" >&ndash;&gt;
                    <textarea id="itemDesc" class="textbox"></textarea>
                </div>
            </div>
            <div class="form-group has-feedback">
                <label class="lab">所属病种</label>
                <div class="ele">
                    <input class="hisui-combobox textbox" id="qcEntity" name="qcEntity" style="width: 560px">
                </div>
            </div>

            <div class="form-group has-feedback">
            <div class="form-inline" style="margin-bottom: 15px;">
                <div class="form-group  has-feedback">
                    <label class="checkbox-inline" for="sourceFlag">
                        <span style="margin-right: 18px;">文献来源</span>
                    </label>
                    <input class='hisui-checkbox' id="sourceFlag" type="checkbox" style="margin-left: 0">
                </div>
                <div class="form-group  has-feedback" style="float: right;margin-right:36px;">
                    <label class="checkbox-inline" for="noCondition" style="padding-left: 0;">
                        <span style="margin-right: 18px;">前置条件</span>
                    </label>
                    <input class='hisui-checkbox' id="noCondition" type="checkbox" style="margin-left: 0">
                </div>
            </div>
            </div>
            &lt;!&ndash;<div class="form-group form-inline has-feedback">&ndash;&gt;
                &lt;!&ndash;<label class="lab">文献来源</label>&ndash;&gt;
                &lt;!&ndash;<div class="ele">&ndash;&gt;
                    &lt;!&ndash;<input class='hisui-checkbox' id="sourceFlag" type="checkbox" style="width: 200px">&ndash;&gt;
                &lt;!&ndash;</div>&ndash;&gt;
                &lt;!&ndash;<label class="lab">前置条件</label>&ndash;&gt;
                &lt;!&ndash;<div class="ele">&ndash;&gt;
                    &lt;!&ndash;<input class='hisui-checkbox' id="noCondition" type="checkbox" style="width: 200px">&ndash;&gt;
                &lt;!&ndash;</div>&ndash;&gt;
            &lt;!&ndash;</div>&ndash;&gt;


            <div class="form-group has-feedback">
                <label class="lab">关联质控项</label>
                <div class="ele">
                    <input class="hisui-combobox textbox" id="qcId" name="qcId" style="width: 560px">
                </div>
            </div>

            <div class="form-group has-feedback">
                <label class="lab">显示时间段</label>
                <div class="ele  has-feedback">
                    <div id="referenceEvent" class="hisui-switchbox" style="margin-left:5px" data-options="onText:'有',offText:'无',
                        size:'small',animated:true,onClass:'primary',offClass:'gray',onSwitchChange:SdcTreatPlanInfoDlg.switchChange">
                    </div>
                </div>
            </div>

            <div id="referenceFlag">
                <div class="form-group has-feedback">
                    <label class="lab"></label>
                    <div class="ele">
                        <table class="table table-bordered">
                            <thead>
                            <tr>
                                <th width="120px">数据源</th>
                                <th width="120px">取值字段</th>
                                <th width="80px">传参</th>
                                <th width="80px">开始时间</th>
                                <th width="80px">结束时间</th>
                                <th width="110px">计算单位</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr>
                                <td>
                                    <select class="hisui-combobox textbox" id="dataSource" name="dataSource"
                                            style="width: 100px"
                                            data-options="editable:false,multiple:false,allowNull:true,selectOnNavigation:false,onSelect:SdcTreatPlanInfoDlg.sourceChange">
                                        @for (dataSource in dataSourceMap) {
                                        <option value="${dataSource.key}">${dataSource.value}</option>
                                        @}
                                    </select>
                                </td>
                                <td>
                                    <select class="hisui-combobox textbox" id="dataSourceItem" name="dataSourceItem"
                                            style="width: 100px"
                                            data-options="editable:false,multiple:false,panelHeight:'100',selectOnNavigation:false">
                                    </select>
                                </td>
                                <td>
                                    <input class="textbox" type="text" style="width: 60px" name="param" id="param">
                                </td>
                                <td>
                                    <input class="textbox" type="text" style="width: 60px" name="param" id="pushStart">
                                </td>
                                <td>
                                    <input class="textbox" type="text" style="width: 60px" name="param" id="pushEnd">
                                </td>
                                <td>
                                    <input class="hisui-combobox textbox" id="timeUnit" name="timeUnit" style="width: 90px">
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>

                &lt;!&ndash;<div class="form-inline" style="margin-bottom: 15px;padding-left: 15px;">
                    <div class="form-group has-feedback">
                        <label class="lab">开始时间</label>
                        <input class="textbox form-control" id="pushStart" name="pushStart" style="width: auto;">
                    </div>
                    <div class="form-group has-feedback">
                        <label class="lab">结束时间</label>
                        <input class="textbox form-control" id="pushEnd" name="pushEnd" style="width: auto;">
                    </div>
                </div>&ndash;&gt;


                &lt;!&ndash;<div class="form-group has-feedback">
                    <label class="lab">计算单位</label>
                    <div class="ele">
                        <input class="hisui-combobox textbox" id="timeUnit" name="timeUnit" style="width: 500px">
                    </div>
                </div>&ndash;&gt;
            </div>

            <div class="form-inline" style="margin-bottom: 15px;">
                <div class="form-group  has-feedback">
                    <label class="checkbox-inline" for="sourceFlag">
                        <span style="margin-right: 18px;">显示前提</span>
                    </label>
                    <div id="referencePremise" class="hisui-switchbox" style="margin-left:5px" data-options="onText:'有',offText:'无',
                        size:'small',animated:true,onClass:'primary',offClass:'gray',onSwitchChange:SdcTreatPlanInfoDlg.switchChange2">
                    </div>
                </div>
                <div class="form-group  has-feedback" style="float: right;margin-right:36px;">
                    <label class="checkbox-inline" for="showPremise" style="padding-left: 0;">
                        <span style="margin-right: 18px;">显示规则</span>
                    </label>
                    <input class="textbox" type="text" style="width: 150px" name="showPremise" id="showPremise">
                </div>
            </div>
            <div id="referencePremiseFlag">
                <div class="form-group has-feedback">
                    <label class="lab"></label>
                    <div class="ele">
                    <div class="hisui-panel" data-options="region:'center'"
                         style="height:210px;width:600px;border:0px;padding-top:5px;">
                        <div class="hisui-panel" fit='true' title='规则'
                             data-options="iconCls:'icon-apply-check',fit:true,headerCls:'panel-header-gray header-tool',tools:'#custtb'"
                             style="border-bottom:1px solid #ccc;border-radius:0;">
                            <div id="custtb" style="">
                                <div style="height: 25px;margin-top: -8px">
                                    <#Button name="全部" icon="icon-all-select" plain="true" clickFun="obj.compareAllRule()"/>
                                    <#Button name="关联规则" icon="icon-compare-yes" plain="true"
                                    clickFun="obj.compareYesRule()"/>
                                    <#Button name="新增" icon="icon-add" plain="true" clickFun="obj.addRule()"/>
                                    <#Button name="修改" icon="icon-write-order" plain="true" clickFun="obj.editRule()"/>
                                    <#Button name="删除" icon="icon-cancel" plain="true" clickFun="obj.deleteRule()"/>
                                    &lt;!&ndash;<input class="hisui-searchbox" style="width:180px" id="qCRuleKey"></input>&ndash;&gt;
                                </div>
                            </div>
                            <div data-options="border:false" id="showPremiseTable"></div>
                        </div>
                    </div>
                    </div>
                </div>
            </div>

            <div class="toolbar">
                <#Button name="保存" id="ensure" icon="icon-w-save" clickFun="SdcTreatPlanInfoDlg.addSubmit()"/>
                <#Button btnCss="l-bt-red" name="关闭" id="cancel" icon="icon-w-close"
                clickFun="SdcTreatPlanInfoDlg.close()"/>
            </div>

        </form>-->

        <form method='post' id="sdcTreatPlanInfoForm" name="sdcTreatPlanInfoForm" enctype="multipart/form-data">
            <input type="hidden" id="id" name="id" value="${sdcTreatPlanId!}">
            <div class="row " style="margin-right: 0px !important;padding-top: 10px;">
                <span class="col-sm-1  control-span">方案名称</span>
                <div class="col-sm-9">
                    <input class="textbox" id="itemName" name="itemName" type="text" style="width: 600px">
                </div>
            </div>
            <div class="row" style="margin-right: 0px !important;padding-top: 10px;">
                <span class="col-sm-1  control-span">方案备注</span>
                <div class="col-sm-9">
                    <textarea id="itemDesc" class="textbox" style="width: 600px"></textarea>
                </div>
            </div>
            <div class="row" style="margin-right: 0px !important;padding-top: 10px;">
                <span class="col-sm-1  control-span">类型</span>
                <div class="col-sm-9">
                    <input class="textbox" id="vteType" name="vteType" type="text" style="width: 600px"
                           placeholder="1 VTE通用方案  其他待扩展">
                </div>
            </div>
            <div class="row " style="margin-right: 0px !important;padding-top: 10px;">
                <span class="col-sm-1  control-span">所属病种</span>
                <div class="col-sm-9">
                    <input class="hisui-combobox textbox" id="qcEntity" name="qcEntity" style="width: 600px">
                </div>
            </div>

            <div class="row btn-margin-bottom" style="margin-right: 0px !important;padding-top: 5px;">
                <span class="col-sm-1 control-span" style="padding-top: 5px;">文献来源</span>
                <div class="col-sm-2">
                    <input class='hisui-checkbox' id="sourceFlag" type="checkbox">
                </div>
                <span class="col-sm-1 control-span" style="padding-top: 5px;">前置条件</span>
                <div class="col-sm-2">
                    <input class='hisui-checkbox' id="noCondition" type="checkbox">
                </div>
                <span class="col-sm-1 control-span" style="padding-top: 5px;">是否生效</span>
                <div class="col-sm-2">
                    <input class='hisui-checkbox' id="isActive" type="checkbox">
                </div>
            </div>
            <div class="row" style="margin-right: 0px !important;">
                <span class="col-sm-1  control-span">关联质控项</span>
                <div class="col-sm-9">
                    <input class="hisui-combobox textbox" id="qcId" name="qcId" style="width: 600px">
                </div>
            </div>
            <div class="toolbar" style="text-align: center;padding-top: 10px;padding-bottom: 10px;">
                <#Button name="保存" id="dataConfigButton" icon="icon-w-save" clickFun="SdcTreatPlanInfoDlg.addSubmit()"/>
            </div>
        </form>

    </div>
    <div title="显示时间段" data-options="" style="padding:50px;" id="timeQuantum">
        @include("/backend/sdc/sdctreatplan/sdctreattimequantum.html"){}
    </div>
    <div title="显示前提" data-options="" style="padding:10px;" id="precondition">
        @include("/backend/sdc/sdctreatplan/sdctreatplanprecondition.html"){}
    </div>
</div>
<script src="${ctxPath}/static/backend/sdc/sdctreatplan/sdctreatplan_info.js"></script>
@}
